<script setup>
const props = defineProps({
  route: {
    type: String, // 跳转的路由    
  },
  text: {
    type: String, // 显示的文字
  },
  icon: {
    type: String, // 显示的图标
  },
})

</script>

<template>
  <router-link :to="props.route" class="user-jump">
    <svg-icon class="icon" :name="props.icon" width="24" height="24" />
    <span>{{ props.text }}</span>
    <svg-icon name="youjiantou" />
  </router-link>
</template>

<style lang='scss' scoped>
.user-jump {
  // border: 1px solid red;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;

  .icon {
    margin-left: 10px;
  }

  &:hover {
    background-color: rgb(227, 229, 231);
  }
}
</style>